package Modules.VolunteerModule
{
	public class Activity
	{		
		// class variable
		public var activityID:String;
		public var areaOfInterest:String;
		public var VHO:String; // volunteer host organization
		public var VHOAbbreviation:String;
		public var activityName:String;
		public var activityNature:String;
		public var date:String;
		public var time:String;
		public var postCode:String;
		public var latitude:String;
		public var longitude:String;
		public var url:String;
		public var status:String;
		public var friends:Array; // friends who are joining this activity
		
		public function Activity(activityXML:XML){
			activityID = activityXML.PCID;
			VHO = activityXML.VHO;
			VHOAbbreviation = activityXML.VHOAbbreviation;
			activityName = activityXML.ActivityName;
			activityNature = activityXML.NatureOfActivity;
			areaOfInterest = activityXML.AreaOfInterest;
			date = activityXML.Date;
			time = activityXML.Time;
			postCode = activityXML.PostCode;
			latitude = activityXML.Latitude;
			longitude = activityXML.Longitude;
			url = activityXML.URL;
			status = ""; // default status
			
			friends = [];
		}
	}
}